package com.runner.player.input;

import com.badlogic.gdx.Gdx;
import com.runner.player.April;

public class AprilInputComponent extends PlayerInputComponent {

	public AprilInputComponent(April p) {
		super(p);
	}

	@Override
	public boolean touchDown(float x, float y) {
		if (x > Gdx.graphics.getWidth() * 0.50f) {
			if (y > Gdx.graphics.getHeight() * 0.2f) {
				player.jump();
			}
		} else {
			player.roll();
		}
		return false;
	}

	@Override
	public boolean fling(float velocityX, float velocityY) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean tap(float x, float y) {
		player.touchUp();
		return false;
	}

}
